package LearnStatic;

public class Main {
    public static void main(String[] args) {
        Person p1 = new Person();

        Person p2 = new Person();

        System.out.println(Person.getCount());

        System.out.println(String.valueOf(p1));
        
    }
}

class Person{
    static int count;

    public Person(){
        count++;
    }

    static int getCount(){
        return count;
    }
}